package decorator.v1;

public class NewCalcFee implements CalcFee{

    private CalcFee calcFee;

    public NewCalcFee(CalcFee calcFee){
        this.calcFee = calcFee;
    }

    @Override
    public Result cost(Param param) {
        System.out.println("NewCalcFee 开始执行了..............");
        Result result = calcFee.cost(param);
        result.setResult(result.getResult() -10);
        System.out.println("NewCalcFee 执行完了..............");
        return result;
    }
}
